/**
*  \file kwp_sid.h
*
*  \brief    KWP2000 service identifier value.
*
*  \author   Michael Kunkelmann  <m.kunkelmann@webergmbh.de>
*
*
*/

#ifndef KWP_SID_H_INCLUDED
#define KWP_SID_H_INCLUDED

/*================================================[ public includes  ]================================================*/
#include "../cfg/prj.h"

/*================================================[ public defines   ]================================================*/

/*================================================[ public datatypes ]================================================*/

/** KWP2000 service identifier value. */
enum kwp_service_identifier
{
   kwp_service_identifier_start_diagnostic_session                    = 0x10,
   kwp_service_identifier_ecu_reset                                   = 0x11,
   kwp_service_identifier_read_freeze_frame_data                      = 0x12,
   kwp_service_identifier_read_diagnostic_trouble_codes               = 0x13,
   kwp_service_identifier_clear_diagnostic_information                = 0x14,
   kwp_service_identifier_read_status_of_diagnostic_trouble_codes     = 0x17,
   kwp_service_identifier_read_diagnostic_trouble_codes_by_status     = 0x18,
   kwp_service_identifier_read_ecu_identification                     = 0x1A,
   kwp_service_identifier_stop_diagnostic_session                     = 0x20,
   kwp_service_identifier_read_data_by_local_identifier               = 0x21,
   kwp_service_identifier_read_data_by_common_identifier              = 0x22,
   kwp_service_identifier_read_memory_by_address                      = 0x23,
   kwp_service_identifier_set_data_rates                              = 0x26,
   kwp_service_identifier_security_access                             = 0x27,
   kwp_service_identifier_dynamic_define_local_identifier             = 0x2C,
   kwp_service_identifier_write_data_by_common_identifier             = 0x2E,
   kwp_service_identifier_input_output_control_by_local_identifier    = 0x30,
   kwp_service_identifier_start_routine_by_local_identifier           = 0x31,
   kwp_service_identifier_stop_routine_by_local_identifier            = 0x32,
   kwp_service_identifier_request_routine_results_by_local_identifier = 0x33,
   kwp_service_identifier_request_download                            = 0x34,
   kwp_service_identifier_request_upload                              = 0x35,
   kwp_service_identifier_transfer_data                               = 0x36,
   kwp_service_identifier_request_transfer_exit                       = 0x37,
   kwp_service_identifier_start_routine_by_address                    = 0x38,
   kwp_service_identifier_stop_routine_by_address                     = 0x39,
   kwp_service_identifier_request_routine_results_by_address          = 0x3A,
   kwp_service_identifier_write_data_by_local_identifier              = 0x3B,
   kwp_service_identifier_write_memory_by_address                     = 0x3D,
   kwp_service_identifier_tester_present                              = 0x3E
};

/*================================================[ public variables ]================================================*/

/*================================================[ public functions ]================================================*/

/*====================================================================================================================*/


#endif

/***********************************************************************************************************************
*                             Copyright 2012 Linde Material Handling. All rights reserved.                             *
***********************************************************************************************************************/
